<!-- Sidebar user panel -->
<div class="user-panel">
    <div class="pull-left image">
        <img src="<?php echo base_url()?>admin/img/avatar3.png" class="img-circle" alt="User Image" />
    </div>
    <div class="pull-left info">
        <p>Hello, 
        <?php
            if($this->session->userdata('admin_user')){
                echo $this->session->userdata('admin_user')->name;
            }
        ?></p>
        <!--<a href="#"><i class="fa fa-circle text-success"></i> Online</a> -->
    </div>
</div>

<!-- search form -->
<!-- <form action="#" method="get" class="sidebar-form">
     <div class="input-group">
        <input type="text" name="q" class="form-control" placeholder="Search..."/>
        <span class="input-group-btn">
            <button type='submit' name='seach' id='search-btn' class="btn btn-flat"><i class="fa fa-search"></i></button>
        </span>
    </div>
</form>-->
<!-- /.search form -->
    
<!-- sidebar menu: : style can be found in sidebar.less -->
<ul class="sidebar-menu">
    <li>
        <a href="<?php echo base_url()?>admin_home">
            <i class="fa fa-dashboard"></i> <span>Dashboard</span>
        </a>
    </li>
    <li>
        <a href="<?php echo base_url()?>admin_event">
            <i class="fa fa-calendar"></i> <span>Events</span></small>
        </a>
    </li>
    
    <?php if($this->session->userdata('admin_user')->level == 1): //ADMINISTRTOR LEVEL 
        ?>
    <li>
        <a href="<?php echo base_url()?>admin_news">
            <i class="fa fa-star"></i> <span>News</span></small>
        </a>
    </li>
    <li>
        <a href="<?php echo base_url()?>admin_elibrary">
            <i class="fa fa-asterisk"></i> <span>E Library</span></small>
        </a>
    </li>
    <li>
        <a href="<?php echo base_url()?>admin_donation">
            <i class="fa fa-money"></i> <span>Donation</span></small>
        </a>
    </li>
<!--    <li>
        <a href="<?php echo base_url()?>admin_reporting">
            <i class="fa fa-print"></i> <span>Case Report</span></small>
        </a>
    </li>
    <li>
        <a href="<?php echo base_url()?>admin_services">
            <i class="fa fa-smile-o"></i> <span>Services</span></small>
        </a>
    </li>-->
    <li class="treeview">
        <a href="">
            <i class="fa fa-magic"></i> <span>Cases & Services</span> <i class="fa fa-angle-left pull-right"></i>
        </a>
        <ul class="treeview-menu">
            <li>
                <a href="<?php echo base_url()?>admin_reporting">
                    <i class="fa fa-print"></i> <span>Case Report</span></small>
                </a>
            </li>
            <li>
                <a href="<?php echo base_url()?>admin_services">
                    <i class="fa fa-smile-o"></i> <span>Services</span></small>
                </a>
            </li>
        </ul>
    </li>
    <li class="treeview">
        <a>
            <i class="fa fa-briefcase"> </i><span>Fund Rising</span> <i class="fa fa-angle-left pull-right"></i>
        </a>
        <ul class="treeview-menu">
            <li>
                <a href="<?php echo base_url("admin_produk");?>"><i class="fa fa-angle-double-right"></i> Product</a>
            </li>
        </ul>
    </li>
    <li class="treeview">
        <a href="<?php echo base_url()?>admin_gallery">
            <i class="fa fa-film"></i> <span>Media </span> <i class="fa fa-angle-left pull-right"></i>
        </a>
        <ul class="treeview-menu">
            <li>
                <a href="<?php echo base_url("admin_gallery/images");?>"><i class="fa fa-angle-double-right"></i>  Image</a>
            </li>
            <li>
                <a href="<?php echo base_url("admin_gallery/video");?>"><i class="fa fa-angle-double-right"></i>  Video</a>
            </li>
        </ul>
    </li>
    <li class="treeview">
        <a href="#">
            <i class="fa fa-bar-chart-o"></i>
            <span>Chart</span>
            <i class="fa fa-angle-left pull-right"></i>
        </a>
        <ul class="treeview-menu">
            <li><a href="<?php echo base_url()?>admin_chart"><i class="fa fa-angle-double-right"></i> All Chart</a></li>
            <li><a href="<?php echo base_url()?>admin_chart/filter"><i class="fa fa-angle-double-right"></i> Filter</a></li>
        </ul>
    </li>
    <li class="treeview">
        <a href="#">
            <i class="fa fa-users"></i>
            <span>IPPI Users</span>
            <i class="fa fa-angle-left pull-right"></i>
        </a>
        <ul class="treeview-menu">
            <li><a href="<?php echo base_url()?>admin_coordinator"><i class="fa fa-angle-double-right"></i> Coordinator</a></li>
            <li><a href="<?php echo base_url()?>admin_member"><i class="fa fa-angle-double-right"></i> Web Member</a></li>
            <li><a href="<?php echo base_url()?>admin_member_ippi"><i class="fa fa-angle-double-right"></i> IPPI Member</a></li>
        </ul>
    </li>
    <li class="treeview">
        <a href="#">
            <i class="fa fa-gears"></i>
            <span>Manage</span>
            <i class="fa fa-angle-left pull-right"></i>
        </a>
        <ul class="treeview-menu">
            <li><a href="<?php echo base_url()?>admin_slide"><i class="fa fa-angle-double-right"></i> Slide Show</a></li>
            <li><a href="<?php echo base_url()?>admin_contact"><i class="fa fa-angle-double-right"></i> Contact</a></li>
        </ul>
    </li>
<!--    <li>
        <a href="<?php echo base_url()?>admin_slide">
            <i class="fa fa-picture-o"></i> <span>Slide Show</span></small>
        </a>
    </li>-->
    <li>
        <a href="<?php echo base_url()?>admin_option">
            <i class="fa fa-gear"></i> <span>Option</span></small>
        </a>
    </li>
    <?php endif ?>
</ul>